import request from '@/utils/axios'

//词库

//获取同义词列表
export function synonymListMethod(data) {
    return request({
        url: '/v1/admin/synonym/getSynonymList',
        method: 'post',
        data: JSON.stringify(data)
    });
}

//新增同义词
export function addSynonym(data) {
    return request({
        url: '/v1/admin/synonym/addSynonym',
        method: 'post',
        data: JSON.stringify(data)
    });
}

//编辑同义词
export function editSynonym(data) {
    return request({
        url: '/v1/admin/synonym/editSynonym',
        method: 'post',
        data: JSON.stringify(data)
    });
}

//删除同义词
export function delSynonym(data) {
    return request({
        url: '/v1/admin/synonym/delSynonym',
        method: 'post',
        data: JSON.stringify(data)
    });
}

//------------规则限定词库--------------

//规则限定词库-列表
export function getLexiconList(data) {
    return request({
        url: '/v1/admin/rule/getLexiconList',
        method: 'post',
        data: JSON.stringify(data)
    });
}

//规则限定词库-新增
export function addLexicon(data) {
    return request({
        url: '/v1/admin/rule/addLexicon',
        method: 'post',
        data: JSON.stringify(data)
    });
}

//规则限定词库-编辑
export function editLexicon(data) {
    return request({
        url: '/v1/admin/rule/editLexicon',
        method: 'post',
        data: JSON.stringify(data)
    });
}

//规则限定词库-删除
export function delLexicon(data) {
    return request({
        url: '/v1/admin/rule/delLexicon',
        method: 'post',
        data: JSON.stringify(data)
    });
}

//规则限定词-列表
export function getTermList(data) {
    return request({
        url: '/v1/admin/rule/getTermList',
        method: 'post',
        data: JSON.stringify(data)
    });
}

//规则限定词-新增
export function addTerm(data) {
    return request({
        url: '/v1/admin/rule/addTerm',
        method: 'post',
        data: JSON.stringify(data)
    });
}

//规则限定词-编辑
export function editTerm(data) {
    return request({
        url: '/v1/admin/rule/editTerm',
        method: 'post',
        data: JSON.stringify(data)
    });
}

//规则限定词-删除
export function delTerm(data) {
    return request({
        url: '/v1/admin/rule/delTerm',
        method: 'post',
        data: JSON.stringify(data)
    });
}